﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Text;

namespace Acoris.Content
{
    /// <summary>
    /// 表示一个笔记本
    /// </summary>
    public sealed class Notebook : IEnumerable<Page>,INotifyPropertyChanged
    {
        ObservableCollection<Page> _pageCollection;

        private Notebook()
        {
            _pageCollection = new ObservableCollection<Page>();
        }


        public event PropertyChangedEventHandler PropertyChanged;

        #region IEnumerable<Page>接口成员

        /// <summary>
        /// 返回用于内容页枚举的遍历器
        /// </summary>
        /// <returns>返回用于内容页枚举的遍历器</returns>
        public IEnumerator<Page> GetEnumerator()
        {
            return _pageCollection.GetEnumerator();
        }

        /// <summary>
        /// 返回用于内容页枚举的遍历器
        /// </summary>
        /// <returns>返回用于内容页枚举的遍历器</returns>
        IEnumerator IEnumerable.GetEnumerator()
        {
            return _pageCollection.GetEnumerator();
        }

        #endregion
    }
}
